app.controller('mineController', function ($scope, $rootScope, $http, $interval, $compile,$state) {
    //登录
    $scope.jumpTo = function () {
        if("pv" == mine.params.type){
            $state.go(pv1_0.stateName);
        }else if("sdm" == mine.params.type){
            $state.go(one.stateName);
        }
    }

    $scope.jumpToPassword = function(){
        $state.go(changePassPage.stateName);
    }

    $scope.exit = function () {
        var postData = {};
        sessionStorage.clear();
        localStorage.clear();
        location.href = "https://chinabp-itg.ext.hp.com.cn/uam/oauth2/logout?appCode=MPS-FEC&redirectUrl=https://chinabp-itg.ext.hp.com.cn/fec-api/frui/hpfecios/loading.html";
    }
    
    function init(){
        //初始化input插件
        document.title='列表';
        var username = sessionStorage.getItem("username");
        $scope.user = username;//getUser();      
    }

    init();

})